package main

import(
	"fmt"
)

func main() {
	fmt.Println("fxy")
	//var my01 [5]int = [5]int {1,2,3,4,5}
	var my01 [5]int
	my01 = [5]int {1,2,3,4,5}
	fmt.Println(my01[0])
	fmt.Println(my01[len(my01)-1])
	my01[4]=100
	fmt.Println(my01)
	for _,v:=range my01{
		fmt.Println(v)
	}

	fmt.Println();
//	var my02 [3][4]int = [3][4]int{{1,2,3,10},{4,5,6,11},{7,8,9,12}}
	var my02 [3][4]int
	my02 = [3][4]int{{1,2,3,4},{5,6,7,8},{9,10,11,12}}
	fmt.Println(my02[0][0])
	fmt.Println(my02[2])
	for _,j:=range my02{
		for _,k:=range j{
			fmt.Println(k)
		}
	}
	fmt.Println()
	my03 :=my01[0:3]
	fmt.Println(my03)
	fmt.Println()

	var my04 []string
	var my05 []int
	var my06 []int = []int{}
	fmt.Println(my04,my05,my06)
	fmt.Println(len(my04),len(my05),len(my06))
	fmt.Println(my04==nil,my05==nil,my06==nil)
	fmt.Println()

	fmt.Println(my03)
	my03=my03[0:0]
	fmt.Println(my03)
	fmt.Println()

	my07 := make([]int,4)
	fmt.Println(my07)
	fmt.Println()

	my08:=my07
	fmt.Println(my08)
}
